

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<f:metadata>
  			<f:viewParam name="uname" value="#{loginBean.employeeDTO.username}"/> 	
  			<f:viewParam name="firstname" value="#{loginBean.firstname}"/>
		</f:metadata>
		<head>
		<title>
			<h:outputText value="#{msg.createEmployees}" />
		</title>
		</head>
		
		<br />
		<f:event listener="#{loginBean.verifyS()}" type="preRenderView"></f:event>
		<br />
		<br />
		<h:form>
		
			<div align="center">
			<h2></h2>
			<h:panelGrid columns="4" styleClass="inner-table login">
				<h:outputText value="#{msg.lastname}:" />
				<h:inputText id="nume"  value="#{angajatBean.lastname}" styleClass="inputText" 
				requiredMessage="Intoduceti numele!" required="true"/>
				<h:message for="nume" styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.firstname}:"/>
				<h:inputText id="prenume" value="#{angajatBean.firstname}" styleClass="inputText" 
				requiredMessage="Introduceti prenumele!" required="true"/>
				<h:message for="prenume" styleClass="errorMessage"/>
				<h:outputText value=" " />
					
				<h:outputText value="#{msg.username}:" />
				<h:inputText id="username" value="#{angajatBean.username}"  styleClass="inputText"
				requiredMessage="Introduceti numele de utilizator!" required="true"/>
				<h:message for="username" styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.password}:"/>
				<h:inputText id="password" value="#{angajatBean.password}" styleClass="inputText" 
				requiredMessage="Introduceti parola!" required="true"/>
				<h:message for="password" styleClass="errorMessage"/>
				<h:outputText value=" " />
				
				<h:outputText value="#{msg.email}:" />
				<h:inputText id="email" value="#{angajatBean.email}" styleClass="inputText" 
				requiredMessage="Introduceti adresa de e-mail!" required="true"/>
				<h:message for="email" styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.rank}:" />
				<h:selectOneMenu value="#{angajatBean.rankS}" styleClass="dropdownlist">
   					<f:selectItem itemValue="#{msg.employee}" />
   					<f:selectItem itemValue="#{msg.administrator}" />
   					<f:selectItem itemValue="#{msg.humanResources}" />
   					<f:selectItem itemValue="#{msg.teamLeader}" />
   					<f:selectItem itemValue="#{msg.secretary}" />
   				</h:selectOneMenu>
   				<h:outputText value=" " />
   				<h:outputText value=" " />
				
				<h:outputText value="#{msg.birthdate}:" />
				<h:selectOneMenu value="#{angajatBean.dn_an}" styleClass="dropdownlist">
   					<f:selectItem itemValue="1975" />
   					<f:selectItem itemValue="1976" />
   					<f:selectItem itemValue="1977" />
   					<f:selectItem itemValue="1978"/>
   					<f:selectItem itemValue="1979" />
   					<f:selectItem itemValue="1980" />
   					<f:selectItem itemValue="1981" />
   					<f:selectItem itemValue="1982"/>
   					<f:selectItem itemValue="1983" />
   					<f:selectItem itemValue="1984" />
   					<f:selectItem itemValue="1985" />
   					<f:selectItem itemValue="1986"/>
   					<f:selectItem itemValue="1987" />
   					<f:selectItem itemValue="1988" />
   					<f:selectItem itemValue="1989" />
   					<f:selectItem itemValue="1990"/>
   					<f:selectItem itemValue="1991" />
   					<f:selectItem itemValue="1992" />
   					<f:selectItem itemValue="1993" />
   					<f:selectItem itemValue="1994"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.dn_lu}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.dn_zi}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
   					<f:selectItem itemValue="13" />
   					<f:selectItem itemValue="14" />
   					<f:selectItem itemValue="15" />
   					<f:selectItem itemValue="16"/>
   					<f:selectItem itemValue="17" />
   					<f:selectItem itemValue="18" />
   					<f:selectItem itemValue="19" />
   					<f:selectItem itemValue="20"/>
   					<f:selectItem itemValue="21" />
   					<f:selectItem itemValue="22" />
   					<f:selectItem itemValue="23" />
   					<f:selectItem itemValue="24"/>
   					<f:selectItem itemValue="25" />
   					<f:selectItem itemValue="26" />
   					<f:selectItem itemValue="27"/>
   					<f:selectItem itemValue="28" />
   					<f:selectItem itemValue="29" />
   					<f:selectItem itemValue="30" />
   					<f:selectItem itemValue="31"/>
				</h:selectOneMenu>
				
				<h:outputText value="#{msg.lastMedicalVisit}:" />
				<h:selectOneMenu value="#{angajatBean.vm_an}" styleClass="dropdownlist">
   					<f:selectItem itemValue="2001" />
   					<f:selectItem itemValue="2002" />
   					<f:selectItem itemValue="2003" />
   					<f:selectItem itemValue="2004"/>
   					<f:selectItem itemValue="2005" />
   					<f:selectItem itemValue="2006" />
   					<f:selectItem itemValue="2007" />
   					<f:selectItem itemValue="2008"/>
   					<f:selectItem itemValue="2009" />
   					<f:selectItem itemValue="2010" />
   					<f:selectItem itemValue="2011" />
   					<f:selectItem itemValue="2012"/>
   					<f:selectItem itemValue="2013" />
   					<f:selectItem itemValue="2014" />
   					<f:selectItem itemValue="2015" />
   					<f:selectItem itemValue="2016"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.vm_lu}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.vm_zi}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
   					<f:selectItem itemValue="13" />
   					<f:selectItem itemValue="14" />
   					<f:selectItem itemValue="15" />
   					<f:selectItem itemValue="16"/>
   					<f:selectItem itemValue="17" />
   					<f:selectItem itemValue="18" />
   					<f:selectItem itemValue="19" />
   					<f:selectItem itemValue="20"/>
   					<f:selectItem itemValue="21" />
   					<f:selectItem itemValue="22" />
   					<f:selectItem itemValue="23" />
   					<f:selectItem itemValue="24"/>
   					<f:selectItem itemValue="25" />
   					<f:selectItem itemValue="26" />
   					<f:selectItem itemValue="27"/>
   					<f:selectItem itemValue="28" />
   					<f:selectItem itemValue="29" />
   					<f:selectItem itemValue="30" />
   					<f:selectItem itemValue="31"/>
				</h:selectOneMenu>
				<h:outputText value="#{msg.department}" />
				<h:inputText value="#{angajatBean.department}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.areamanager}:" />
				<h:inputText value="#{angajatBean.areaManager}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				
				<h:outputText value="#{msg.position}:" />
				<h:inputText value="#{angajatBean.position}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.contactperson}:" />
				<h:inputText value="#{angajatBean.contactpersonde}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				
				<h:outputText value="#{msg.teamLeader}:" />
				<h:inputText value="#{angajatBean.teamleaderro}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.emplType}:" />
				<h:inputText value="#{angajatBean.empl_type}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				
				<h:outputText value="#{msg.varPart}:" />
				<h:inputText value="#{angajatBean.var_part}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.salary}:" />
				<h:inputText value="#{angajatBean.net_salary}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				
				<h:outputText value="#{msg.emplDate}:" />
				<h:selectOneMenu value="#{angajatBean.da_an}" styleClass="dropdownlist">
   					<f:selectItem itemValue="2005" />
   					<f:selectItem itemValue="2006" />
   					<f:selectItem itemValue="2007" />
   					<f:selectItem itemValue="2008"/>
   					<f:selectItem itemValue="2009" />
   					<f:selectItem itemValue="2010" />
   					<f:selectItem itemValue="2011" />
   					<f:selectItem itemValue="2012"/>
   					<f:selectItem itemValue="2013" />
   					<f:selectItem itemValue="2014" />
   					<f:selectItem itemValue="2015" />
   					<f:selectItem itemValue="2016"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.da_lu}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.da_zi}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
   					<f:selectItem itemValue="13" />
   					<f:selectItem itemValue="14" />
   					<f:selectItem itemValue="15" />
   					<f:selectItem itemValue="16"/>
   					<f:selectItem itemValue="17" />
   					<f:selectItem itemValue="18" />
   					<f:selectItem itemValue="19" />
   					<f:selectItem itemValue="20"/>
   					<f:selectItem itemValue="21" />
   					<f:selectItem itemValue="22" />
   					<f:selectItem itemValue="23" />
   					<f:selectItem itemValue="24"/>
   					<f:selectItem itemValue="25" />
   					<f:selectItem itemValue="26" />
   					<f:selectItem itemValue="27"/>
   					<f:selectItem itemValue="28" />
   					<f:selectItem itemValue="29" />
   					<f:selectItem itemValue="30" />
   					<f:selectItem itemValue="31"/>
				</h:selectOneMenu>
				<h:outputText value="#{msg.departDate}:" />
				<h:selectOneMenu value="#{angajatBean.dp_an}" styleClass="dropdownlist">
   					<f:selectItem itemValue="2011" />
   					<f:selectItem itemValue="2012"/>
   					<f:selectItem itemValue="2013" />
   					<f:selectItem itemValue="2014" />
   					<f:selectItem itemValue="2015" />
   					<f:selectItem itemValue="2016"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.dp_lu}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
				</h:selectOneMenu>
				<h:selectOneMenu value="#{angajatBean.dp_zi}" styleClass="dropdownlist">
   					<f:selectItem itemValue="01" />
   					<f:selectItem itemValue="02" />
   					<f:selectItem itemValue="03" />
   					<f:selectItem itemValue="04"/>
   					<f:selectItem itemValue="05" />
   					<f:selectItem itemValue="06" />
   					<f:selectItem itemValue="07" />
   					<f:selectItem itemValue="08"/>
   					<f:selectItem itemValue="09" />
   					<f:selectItem itemValue="10" />
   					<f:selectItem itemValue="11" />
   					<f:selectItem itemValue="12"/>
   					<f:selectItem itemValue="13" />
   					<f:selectItem itemValue="14" />
   					<f:selectItem itemValue="15" />
   					<f:selectItem itemValue="16"/>
   					<f:selectItem itemValue="17" />
   					<f:selectItem itemValue="18" />
   					<f:selectItem itemValue="19" />
   					<f:selectItem itemValue="20"/>
   					<f:selectItem itemValue="21" />
   					<f:selectItem itemValue="22" />
   					<f:selectItem itemValue="23" />
   					<f:selectItem itemValue="24"/>
   					<f:selectItem itemValue="25" />
   					<f:selectItem itemValue="26" />
   					<f:selectItem itemValue="27"/>
   					<f:selectItem itemValue="28" />
   					<f:selectItem itemValue="29" />
   					<f:selectItem itemValue="30" />
   					<f:selectItem itemValue="31"/>
				</h:selectOneMenu>
				
				<h:outputText value="#{msg.prosisNr}:" />
				<h:inputText value="#{angajatBean.prosisnr}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
				<h:outputText value="#{msg.profile}:" />
				<h:inputText value="#{angajatBean.profile}" styleClass="inputText" />
				<h:message styleClass="errorMessage"/>
				<h:outputText value=" " />
			</h:panelGrid> <br></br>
			
			<h:commandButton
				value="#{msg.create}" styleClass="button" action="#{angajatBean.create()}"/> <br></br>
			<h:commandButton
				value="#{msg.back}" styleClass="button" action="#{loginBean.inapoiS()}"  immediate="true"/> <br></br>
			<h:commandButton
				value="#{msg.logout}" styleClass="button" action="#{adminBean.logOut()}"  immediate="true"/> <br></br>	
				
				 </div>
		</h:form>
	</ui:define>

</ui:composition>

</html>






